/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.e_eap.esite.bean;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 *
 * @author Asia
 */
@Entity
public class ErrCode implements Serializable {
    
    public static Map<Integer, String> error = new HashMap<Integer ,String>();

    public ErrCode() {
    }

    public ErrCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
    
    

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    private int id;
    private int code;
    private String message;
}
